package com.base.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.base.system.mybatisPlus.entity.MybatisRole;

import java.util.List;

public interface RoleService {
    IPage<MybatisRole> page(Page<MybatisRole> page, MybatisRole role);

    void save(MybatisRole role);

    void update(MybatisRole role);

    void delete(Long id);

    void addPer(Long roleId, List<Long> perIds);

    List<Long> currentRoleWithPres(Long roleId);

    List<MybatisRole> all();
}
